using System;
namespace EntityModel
{
    partial class CContract
    {
        public CContract(Car c,Private p, DateTime time){
            this.c_car = c.id;
            this.c_custumer = p.id;
            this.tContract = time;        
        }
    }

    partial class CLeasing
    {
        public CLeasing(Truck t, Business b, int months, DateTime start) {
            this.startDate = start;
            this.nMonths = months;
            this.rentPM = t.Vehicle.price;
            this.truck = t.Vehicle.reg_number;
            this.c_customer = b.id;
        }
    }

    partial class Employee
    {
        public Employee(string username, string password, string name) {
            this.username = username;
            this.password = password;
            this.name = name;        
        }
    }
}
